package com.itheima.aop;

import org.aspectj.lang.ProceedingJoinPoint;

public class Teacher{
    public Object around(ProceedingJoinPoint pjp){

            System.out.println("每日回顾");
            Object ret=null;
        try {
            //对原始方法的调用
            ret=pjp.proceed();

            System.out.println("每日总结");
        } catch (Throwable throwable) {
            System.out.println("老师解答问题");
        } finally {
            System.out.println("高新就业");
        }
        return ret;
    }

}
